﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Helpers;

namespace WebApplication.Core.Helpers
{
    public static class EmailSenderHelper
    {
        //private string address = string.Empty;
        //private string id_hash = string.Empty;
        //private string email = string.Empty;

        //public EmailSenderHelper(string address, string id_hash, string email)
        //{
        //    this.address = address;
        //    this.id_hash = id_hash;
        //    this.email = email;
        //}

        public static void Send(string message, string emailTo, string subject)
        {
             WebMail.SmtpServer = "smtp.gmail.com";
             WebMail.SmtpPort = 587;
             WebMail.EnableSsl = true;
             WebMail.UserName = "alborozd";
             WebMail.Password = "dthibyfjkbvgf";
             WebMail.From = "alborozd@gmail.com";
             WebMail.Send(emailTo, subject, message);
        }

    }
}